import request from '@/utils/request'

/**
* 产品管理分页查询
* @param {查询条件} data
*/
export function listSales(query) {
  return request({
    url: 'business/Sales/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增产品管理
* @param data
*/
export function addSales(data) {
  return request({
    url: 'business/Sales',
    method: 'post',
    data: data,
  })
}
/**
* 修改产品管理
* @param data
*/
export function updateSales(data) {
  return request({
    url: 'business/Sales',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取产品管理详情
* @param {Id}
*/
export function getSales(id) {
  return request({
    url: 'business/Sales/' + id,
    method: 'get'
  })
}

/**
* 删除产品管理
* @param {主键} pid
*/
export function delSales(pid) {
  return request({
    url: 'business/Sales/delete/' + pid,
    method: 'delete'
  })
}
